package sys_db

type SysConfig struct {
	//Id        int64  `gorm:"column:ID;not null;type:int(4);primaryKey;autoIncrement:true;comment:'配置ID'"`
	//Id        int64  `gorm:"column:ID;not null;type:int(4) auto_increment;comment:'配置ID'"`
	Parameter string `gorm:"column:parameter;type:varchar(30);primary_key;comment:'配置项'"`
	Value     string `gorm:"column:value;type:varchar(30);comment:'值'"`
	Remarks   string `gorm:"column:remarks;type:varchar(30);comment:'备注'"`
}

type DbConnectList struct {
	ID   int64  `json:"id" form:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
	Name string `json:"name" form:"name" gorm:"column:name;type:varchar(20);comment:'名称'"`
	Type string `json:"type" form:"type" gorm:"column:type;type:varchar(20);comment:'数据库类型'"`
	//ConnectStr string `json:"ConnectStr" form:"ConnectStr" gorm:"column:ConnectStr;type:varchar(120);comment:'连接字符串'"`
	Address  string `json:"address" form:"address" gorm:"column:address;type:varchar(120);comment:'数据库地址'"`
	Port     string `json:"port" form:"port" gorm:"column:port;type:varchar(120);comment:'端口'"`
	Username string `json:"username" form:"username" gorm:"column:username;type:varchar(120);comment:'用户名'"`
	Password string `json:"password" form:"password" gorm:"column:password;type:varchar(120);comment:'密码'"`
	Database string `json:"database" form:"database" gorm:"column:database;type:varchar(120);comment:'数据库'"`
	//IsDefault  string `gorm:"column:isDefault;type:varchar(2);comment:'是否默认'"`
	Remarks string `json:"remarks" form:"remarks" gorm:"column:remarks;type:varchar(30);comment:'备注'"`
}
